<?php

namespace app\admin\middleware\common;

use app\common\Constants;
use think\Request;

class ActionLog
{
    public function handle(Request $request, \Closure $next)
    {
        $response = $next($request);

        // 触发操作日志事件
        event('AdminLog',['type'=>Constants::LOG_TYPE_OPERATE]);

        return $response;
    }
}